<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
</head>

<body>
    <script>
        function getJsonFromUrl() {
            var query = location.search.substr(1);
            var result = {};
            query.split("&").forEach(function (part) {
                var item = part.split("=");
                result[item[0]] = decodeURIComponent(item[1]);
            });
            return result;
        }
        var openid = getJsonFromUrl().openid;
        var htmlFileName = window.localStorage.getItem("htmlFileName");
        sessionStorage.setItem("openId", openid);
        var href = "/wechat/assets/" + htmlFileName + ".html";
        if (htmlFileName === 'identification2') {
            window.location.href = `/wechat/identification/index.html/#/${openid}`
        } else {
            window.location.href = href;
        }
    </script>
</body>

</html>